package com.itheima.service;

import com.itheima.pojo.Role;
import com.itheima.pojo.User;
import entity.PageResult;
import entity.QueryPageBean;

import java.util.List;
import java.util.Set;

/**
 * @Description:
 * @Author: yp
 */
public interface UserService {

    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    User findByUsername(String username);


    PageResult findPage(QueryPageBean queryPageBean);

    void add(User user, Integer[] checkitemIds);

    User findById(Integer id);

    List<Integer> findCheckItemIdsByCheckGroupId(Integer checkGroupId);

    void edit(User checkGroup, Integer[] checkitemIds);

    void delete(Integer checkGroupId);
}
